﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GMS.BIZ
{
    public class Company
    {
        #region Model
        private decimal _id;
        private string _std_id;
        private string _com_name;
        private int? _com_style;
        private string _com_address;
        private string _com_tel;
        private string _com_post;
        private string _com_web;
        private int? _ifsld;
        /// <summary>
        /// 流水号
        /// </summary>
        public decimal id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 学生学号
        /// </summary>
        public string std_id
        {
            set { _std_id = value; }
            get { return _std_id; }
        }
        /// <summary>
        /// 公司名称
        /// </summary>
        public string com_name
        {
            set { _com_name = value; }
            get { return _com_name; }
        }
        /// <summary>
        /// 公司性质
        /// </summary>
        public int? com_style
        {
            set { _com_style = value; }
            get { return _com_style; }
        }
        /// <summary>
        /// 公司地址
        /// </summary>
        public string com_address
        {
            set { _com_address = value; }
            get { return _com_address; }
        }
        /// <summary>
        /// 公司电话
        /// </summary>
        public string com_tel
        {
            set { _com_tel = value; }
            get { return _com_tel; }
        }
        /// <summary>
        /// 公司邮编
        /// </summary>
        public string com_post
        {
            set { _com_post = value; }
            get { return _com_post; }
        }
        /// <summary>
        /// 公司网站
        /// </summary>
        public string com_web
        {
            set { _com_web = value; }
            get { return _com_web; }
        }
        /// <summary>
        /// 是否签四联单
        ///0：没有签
        ///1：已签
        /// </summary>
        public int? ifSLD
        {
            set { _ifsld = value; }
            get { return _ifsld; }
        }
        #endregion Model

        /// <summary>
        /// 获得公司类型中文名
        /// </summary>
        /// <param name="id">id号</param>
        public static string GetCompanyStyleName(int id)
        {
            GMS.ORM.DAL.GCompanyStyle optGCompanyStyle = new GMS.ORM.DAL.GCompanyStyle();
            return optGCompanyStyle.GetModel(id).name;
        }
    }
}
